Histogram-equalized stretch